package com.lagou.edu.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @author 应癫
 */
public class DruidUtils {

    private DruidUtils(){
    }

    private static DruidDataSource druidDataSource = new DruidDataSource();


    static {
//        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
//        druidDataSource.setUrl("jdbc:mysql://localhost:3306/bank");
//        druidDataSource.setUsername("root");
//        druidDataSource.setPassword("123456");

        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://bj-cdb-fmhcv6zw.sql.tencentcdb.com:62785/zdy_mybatis");
        druidDataSource.setUsername("zlcx_wx");
        druidDataSource.setPassword("root456$%^");

    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }

}
